﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter01.Section2
{
    public class Example05
    {
        public Example05()
        {
        }
        private string result;
        public string Result
        {
            get { return result; }
        }
        public void Compute()
        {
            L.Vector v = new L.Vector(2);
            v[0] = 3.0;
            v[1] = 1.0;

            L.Vector w = new L.Vector(2);
            w[0] = 1.0;
            w[1] = 3.0;

            result += ((v*w)/v.Length/w.Length).ToString() + "\r\n";
            result += (3.0/5.0).ToString() + "\r\n";
        }
    }
}
/*
0.6
0.6
*/